package com.lili.collection.core.executor;

import com.lili.collection.core.context.Context;
import com.lili.collection.core.runner.PipeRunner;
import com.lili.collection.core.runner.result.RunnerResult;

import java.util.Map;

/**
 * Executor
 *
 * @author lili
 * @date 2023/3/7 10:46
 */
public interface Executor {

    void execute(Context context);

    void setContext(Context context);

    Context getContext();

    PipeRunner getPipeRunner();

    Map<String, RunnerResult> getPipeRunnerResult();

    default String getOutputOffset(){
        return null;
    }
}
